<?php
class Del_model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
    }
     
    public function delete($table,$field,$id)
    {
        $this->db->query("DELETE FROM $table WHERE $field=$id");
    }

}